package com.itheima.a05oopextendsdemo5;

public class Employce {

    //成员变量
    private String Id;
    private String Name;


    //构造方法
    public Employce() {}

    public Employce(String id, String name) {
        Id = id;
        Name = name;
    }


    //get/set方法
    public String getId() {
        return Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    //方法
    //工作
    public void work(){
        System.out.println("员工在工作");
    }
}
